﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PBOfficeMaster.master" AutoEventWireup="true"
    CodeFile="Position.aspx.cs" Inherits="PersonalManager_Position" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" rel="Stylesheet" href="../css/PersonalManagerCss.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style=" width:864px;">
        <div class="branchtop">
            <table>
                <tr>
                    <td>
                        当前位置
                    </td>
                    <td>
                        <div class="lbBranch">
                            岗位管理</div>
                    </td>
                </tr>
            </table>
        </div>
        <hr />
        <div style="margin: 15px 15px; height: auto;">
            <div class="depleft">
                <asp:TreeView ID="tvDeparment" runat="server" ExpandDepth="1">
                </asp:TreeView>
            </div>
            <div class="depright">
                <div style="text-align: left; font-size: 12px;">
                    职位名称&nbsp;
                    <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
                    <asp:Button ID="btnSearch" CssClass="btnBranch" runat="server" Text="搜索" 
                        onclick="btnSearch_Click" />&nbsp;
                    <asp:Button ID="btnAdd" runat="server" CssClass="btnBranch" Text="添加" 
                        onclick="btnAdd_Click" /></div>
                <div style="margin: 8px auto;">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="432px"
                        BorderColor="#00CCFF" BorderStyle="Solid" Font-Size="12px" 
                        DataKeyNames="PosId" onrowcancelingedit="GridView1_RowCancelingEdit" 
                        onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
                        onrowupdating="GridView1_RowUpdating">
                        <Columns>
                            <asp:BoundField DataField="PosName" HeaderText="职位名称" SortExpression="PosName" />
                            <asp:TemplateField HeaderText="部门名称" SortExpression="DeptId">
                                
                                <ItemTemplate>
                                    <asp:Label ID="lbDeptName" runat="server" Text='<%# Bind("Department.DeptName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作" ShowHeader="False">
                                <EditItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                                        Text="更新"></asp:LinkButton>
                                    &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                        Text="取消"></asp:LinkButton>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbtnEdit" runat="server" CausesValidation="False" CommandName="Edit"
                                        Text="编辑"></asp:LinkButton>
                                    &nbsp;
                                    <asp:LinkButton ID="lbtnDelete" CommandName="delete" runat="server">删除</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <AlternatingRowStyle BackColor="#F4FCFE" />
                        <HeaderStyle BackColor="#66CCFD" BorderColor="#33CCFF" Font-Size="12px" ForeColor="White" />
                        <RowStyle BackColor="#FDFEFF" Font-Size="12px" Height="15px" />
                    </asp:GridView>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
